<template>
  <div>
    <h1>个人中心</h1>
    <button @click='goBack'>返回</button>
  </div>
</template>

<script lang='ts'>
import { defineComponent } from 'vue'
import { useRouter } from 'vue-router'
export default defineComponent({
  setup () {
    const router = useRouter()
    const goBack = () => {
      router.back()
    }
    return {
      goBack
    }
  }
})
</script>

<style>

</style>